package com.rongji.dfish.demo.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DfishViewDir entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DFISH_VIEW_DIR")
public class DfishViewDir implements java.io.Serializable {

	// Fields

	private String dirId;
	private String dirName;
	private Long dirOrder;
	private String dirParent;
//	private String dirRoot;
	private String dirPath;
	private String dirRemark;
//	private String category;
	private Date updateTime;
	private String dirCreator;

	// Constructors

	/** default constructor */
	public DfishViewDir() {
	}

	/** minimal constructor */
	public DfishViewDir(String dirId) {
		this.dirId = dirId;
	}

	// Property accessors
	@Id
	@Column(name = "DIR_ID", unique = true, nullable = false, length = 16)
	public String getDirId() {
		return this.dirId;
	}

	public void setDirId(String dirId) {
		this.dirId = dirId;
	}

	@Column(name = "DIR_NAME")
	public String getDirName() {
		return this.dirName;
	}

	public void setDirName(String dirName) {
		this.dirName = dirName;
	}

	@Column(name = "DIR_ORDER", scale = 0)
	public Long getDirOrder() {
		return this.dirOrder;
	}

	public void setDirOrder(Long dirOrder) {
		this.dirOrder = dirOrder;
	}

	@Column(name = "DIR_PARENT", length = 16)
	public String getDirParent() {
		return this.dirParent;
	}

	public void setDirParent(String dirParent) {
		this.dirParent = dirParent;
	}

	@Column(name = "DIR_PATH", length = 1000)
	public String getDirPath() {
		return this.dirPath;
	}

	public void setDirPath(String dirPath) {
		this.dirPath = dirPath;
	}

	@Column(name = "DIR_REMARK", length = 2000)
	public String getDirRemark() {
		return this.dirRemark;
	}

	public void setDirRemark(String dirRemark) {
		this.dirRemark = dirRemark;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 7)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "DIR_CREATOR", length = 16)
	public String getDirCreator() {
		return dirCreator;
	}

	public void setDirCreator(String dirCreator) {
		this.dirCreator = dirCreator;
	}

}